<% 
for name in [:info, :warning, :error] 
	if @flash[name] 
		message = nil
		case name
		when :info 
			message = @flash[name][@options[:scaffold_model]]
		else
			message = @flash[name]
		end
		if message
%>
    <p class="<%= "#{name}-message message" %>" >
      <%= message %> 
    </p>
<% 
		end
	end
end 
%>
